home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 04 geoProgramming / PDPTCH.ARC / PRINTDRVRPATCHER (.txt) next >
Encoding:
GEOS ConVerT  |  2019-04-13  |  13.8 KB  |  160 lines

  1. PrintDrvrPatcher
  2. PRG formatted GEOS file V1.0
  3. EPSON FX-80 (GC)
  4. `temsDemo
  5. MOUSEUP3.0.ARC
  6. BLASTER'S CONVERTER V2.5
  7. geoPassword
  8. CONFIGURE
  9. PrintPatcherV2.0
  10. George H. Wells, Jr.
  11. Patch Printer Drivers easily according to instructions provided by a programmer.
  12. GEOS Printer Driver Patcher
  13. ^${P?
  14. LV    H 
  15. LV    $z
  16. ${0` 
  17. LV    ${0
  18. Incomplete list of patches.
  19. JJJJ B
  20.          GEOS Printer Driver Patcher
  21. Please select the old (original) printer driver:
  22. (First-time users should click YES for info.)
  23. Iand click
  24. dfor info
  25. & options
  26. to deskTop
  27. Please select the new (previously patched)
  28. printer driver.  Use the old one if you are
  29. just starting to patch:
  30. Xand click
  31. to deskTop
  32. Old Driver Name:
  33. Old CRC code:
  34. New Driver Name:
  35. Enter an UN-used filename for the
  36. New Driver and hit RETURN or:
  37. sto quit to deskTop
  38. Before CBM PRoGram file can be 
  39. written to disk, please enter an 
  40. UN-used filename and hit RETURN.
  41. End Address:
  42. cwrite attempt
  43. rto print pro-
  44. {gramming info
  45. This application provides an easy way for any
  46. GEOS user to make minor changes in an existing
  47. Printer Driver according to instructions provided
  48. by a programmer. It is intended for customizing
  49. such things as page length, NLQ or other printer
  50. codes, or removing extra line-feeds.  Before
  51. proceeding, you should print the user informa-
  52. tion (one page) and retain for future reference.
  53. pto print user
  54. yinformation
  55. pfor program-
  56. ymers only
  57. to return
  58. to patching
  59. to deskTop
  60. Old Driver Name:  
  61. Old CRC Code:     
  62. Old End Address:  
  63. New Driver Name:  
  64. New CRC Code:     
  65. New End Address:  
  66. Number of Patches:
  67. sto print
  68. |patches
  69. swrite
  70. |file to
  71. for more
  72. patches
  73. exit to
  74. deskTop
  75. Before file can be written to
  76. disk, please enter an UN-used
  77. filename and hit RETURN.
  78. End Address:
  79. uwrite attempt
  80. Hit mouse button to halt printing....
  81. Form Feed Printer?              
  82. The Active Printer Driver is
  83. not on the disk.
  84. There has been a disk error.
  85. Make sure original disk is in
  86. the same drive and that it
  87. is not write-protected.
  88. No disk transfer has been made.
  89. uto return to patching
  90. Hit mouse button to halt printing....
  91. Return to patching?            
  92. The file has been successfully
  93. written to disk.
  94. ato deskTop
  95. uto return to patching
  96. The active printer driver:
  97. appears to be an early version
  98. that will not print ASCII text.
  99. Select another from the deskTop.
  100. uto return to patching
  101. Cannot find printer driver:
  102. Make sure a copy of it is on
  103. this disk or select a different
  104. driver from the deskTop.
  105. uto return to patching
  106. Form Feed Printer?
  107. Hthen return
  108. to patching
  109. fthen exit
  110. to deskTop
  111. File:
  112. has not yet been written to
  113. disk.  Are you sure you want
  114. to discard this patched file?
  115. bto discard patched file
  116. vto return to patching
  117. There has been a printer error.
  118. Make sure printer is plugged in
  119. and on-line and is not out
  120. of paper.
  121. uto return to patching
  122.                User Information for GEOS Printer Driver Patcher 
  123. Use this program when you have a programmer's list of instructions to patch a printer driver to solve a problem with your printer. You might get such a list from a BBS, a magazine or user group newsletter, or even privately. Example: 
  124. ------------------------------------------------------------------------------
  125. These patches delete all the special printer codes for TEXT so you can manually select an NLQ font built into your printer without the New Driver over-riding it. It also works with daisy wheel printers and all non-Commodore printers that use ASCII and support form-feed. It modifies only NLQ and DRAFT, not other geo- Write fonts or geoPaint graphics. The Old Driver came with GEOS 1.3 products. 
  126. Old Driver Name:  Epson FX-80
  127. Old CRC Code:     82a1
  128. Old End Address:  7b51
  129. New Driver Name:  Epson FX-80noNLQ
  130. New CRC Code:     d298
  131. New End Address:  7b51
  132. Number of Patches:     2
  133. 7915 4c 60   7ac1 0d fa
  134. -------------------------------------------------------------------------------
  135. Due to risk in patching, always use a separate work disk with copies of this program, the Old Driver to be patched, and your active printer driver if you decide to print your patches to verify against the list. 
  136. In the first two Dialog Boxes, select the same Old Driver Name (the one to be patched). The third Dialog Box gives you the CRC Code for the Old Driver. A CRC Code is like a checksum which is calculated when the driver is loaded from disk. If the Old CRC Code in the Dialog Box does NOT exactly match the Old CRC Code in the list, go back to the deskTop to search for the correct driver on another disk. Matching CRC Codes is your only guarantee that you have the correct driver since there can be more than one version with the same name. If you find another candidate, copy it to your work disk and rerun the program. When the CRC Codes DO match, type a UNIQUE New Driver Name and hit <RETURN>. 
  137. The next Dialog Box shows a four-digit hexidecimal address, followed by its two-digit hex data, and Verify and Done icons. In the example, the first address that needs to be patched is (7915). Go to it by DELeting back over the data and current address. Type in (7915) and <RETURN>. You should see (7915) and its current data (4c). At the cursor enter the patching (new) data (60) and <RETURN>. This is VERY important: <RETURN> makes the program replace the old data (4c) with the new data (60) and display the next address (7916) with its data (f6). Now make the next patch from the example, DELeting (7916 f6) and typing (7ac1) <RETURN>, then after (0d), type (fa) <RETURN>. Continue if more are listed. Disregard dashes: the program replaces them with (60) if required. 
  138. When you have made the patches, click on the Verify icon. The Dialog Box displays the first patch; clicking again shows the second, etc. A patch at an incorrect address may be removed by entering <DEL> <DEL> <RETURN>. If all patches match those in the instructions, click on the Done icon. 
  139. The next Dialog Box shows seven lines of information. The New CRC Code and New End Address on the screen MUST MATCH those in the list. If NOT, DELete and type the correct New End Address and <RETURN>. The program will recalculate the New CRC Code. If either or both still do not match, print the patches to proof-read against the list and/or click OK to re-enter patching mode to correct them. 
  140. When everything matches, write the file to Disk and exit to the deskTop. Click geos in the command bar to select your new printer driver. Until you are sure it does what you want, work only with copies of documents. 
  141.                Information on GEOS Printer Driver Patcher 
  142.                           Notes for Programmers
  143. You can convert any GEOS printer driver to a standard CBM machine language program to be disassembled and printed out with a monitor. Select the desired printer driver in the first Dialog Box and click the YES icon for options. In the second Dialog Box, click the Disk icon: "for programmers only". The third Dialog Box requests a new name (do not use lower-case characters) for the CBM version of the driver. It also tells you the end address of the driver for you to know how far to disassemble. (All printer drivers start at $7900.) NOTE: since the CBM version is not a valid GEOS printer driver, it will not appear in the file selection menus. Do not try to use the CBM version within GEOS, except to delete it. Make notes of your desired patches and use this program to create a new patched driver. If you need more room than the original (Old) driver, the extra space will be pre-loaded with RTS's ($60), whether you change the New End Address directly or just patch beyond the Old End Address. 
  144. Assuming that it takes several versions to get a patched driver to do what you want, print out the list(s) of instructions by selecting the Old Driver Name in the first Dialog Box, the New Driver Name in the second Dialog Box, and clicking YES: "to print patches" in the third Dialog Box. To help keep track of the versions, you can use the deskTop to put a brief note in the file's info box. This is especially important for any patched drivers you plan to share with others. 
  145. Most of the Dialog Boxes are self-instructing; the small fourth Patching Dialog Box needs more explanation: 
  146. Each time the box is presented, it displays an address in the range ($7900-7f40), followed optionally by the old and new data. If this Current Address is at or beyond the New End Address, two hyphens, equivalent to RTS's ($60), are displayed instead of the Old Data. Following that is the New Data if it is different from the Old Data. 
  147. At this point you can do one of three things: 
  148. 1. Clicking Done leaves the patching mode;
  149. 2. Clicking Verify makes the program search the old and new drivers for the next patch;
  150. 3. And <RETURN> causes the currently displayed line of characters, which you may have modified, to be interpreted according to the following rules: 
  151. Only hexidecimal characters are significant. These are the numerals (0-9) and the letters (a-f and A-F). Any other characters are ignored. The first four hex digits are interpreted as an address and become the Current Address if in the range ($7900-$7f3f). The last two hex digits (beyond the four address digits) will be patched into the new file at that address. For example:  (79Ea5f) <RETURN> will put ($5f) at address ($79ea). (So will T7Q9eAB5-F.) Then the Current Address is incremented to the next address for the next Dialog Box. If only an address is input, it will become the current address for the next Dialog Box. 
  152. The New End Address automatically is adjusted any time a patch is made at or beyond its current location. (Note: the end address is one digit greater than the last used address of a file.) Both the old and new drivers are padded with data of RTS's ($60) from their initial end addresses to ($7f3f), the last possible file address. 
  153. This program was written by George H. Wells, Jr. and is released to the public domain. If you find this program useful, please share it and your patches with others. Special thanks go to Terry Mills and Marte Brengle for their help in testing this program. 
  154. 7900 60 4C
  155. C0DE 
  156. 701d 
  157. C0DE 
  158. 7fff 
  159. 1234 
  160.